package com.cgah.api

import com.cgah.exceptions.BidNotFoundException

/**
 * Created by IntelliJ IDEA.
 * User: chue
 * Date: 5/1/11
 * Time: 8:27 PM
 * To change this template use File | Settings | File Templates.
 */
interface BidService {

    def countOfBids()

    def create(def params)

    def list(def params, def userName, def password)

    def list(def params)

    def save(def params, def userName, def password)

    def save(def params, def userId)

    def getBidById(def id, def userName, def password)

    def getBidById(def id) throws BidNotFoundException

    def updateBidWithParams(def params, def userName, def password)

    def updateBidWithParams(def params) throws BidNotFoundException

    def deleteBidById(def id, def userName, def password) throws BidNotFoundException

    def deleteBidById(def id) throws BidNotFoundException
}
